#include "GameScreen.h"
#include "base.h"
#include "Game.h"
#include "Constant.h"

GameScreen::GameScreen(void)
{
	m_bAcceptInput = true;
	m_bUpdate = true;
	m_bDraw = true;
	m_bBlockInput = false;
	m_bBlockUpdate = false;
	m_pGame = NULL;
	m_pRenderer = NULL;
	m_pScreenManager = NULL;
}
GameScreen::~GameScreen(void)
{
}

void GameScreen::OnScreenRemoved()
{
}
void GameScreen::OnScreenRemoveRequest()
{
}
void GameScreen::Render()
{
}
void GameScreen::Update()
{
}
bool GameScreen::ScreenInit(IGame *pGame)
{
	m_pGame = pGame;
	m_pRenderer = m_pGame->GetRenderer();
	m_pScreenManager = m_pGame->GetScreenManager();
	return true;
}
string GameScreen::GetInternalName()
{
	return string(SCREENNAME_UNDEFINED);
}
void GameScreen::OnKeyPress(uint key) { }
void GameScreen::OnKeyRelease(uint key) { }
bool GameScreen::_bBlockInput() { return m_bBlockInput; }
bool GameScreen::_bUpdate() { return m_bUpdate; }
bool GameScreen::_bAcceptInput() { return m_bAcceptInput; }
bool GameScreen::_bBlockUpdate() { return m_bBlockUpdate; }
bool GameScreen:: _bDraw() { return m_bDraw; }
IGame *GameScreen::GetGame() { return m_pGame; }
IRenderer *GameScreen::GetRenderer() { return m_pRenderer; }
IScreenManager *GameScreen::GetScreenManager() { return m_pScreenManager; }